package net.sf.midollo.net.io;

import java.io.IOException;
import java.net.HttpURLConnection;

public class HttpIOStream extends URLIOStream {

	public HttpIOStream(HttpURLConnection urlConnection) throws IOException {
		super(urlConnection);
	}

	public HttpURLConnection getHttpURLConnection() {
		return (HttpURLConnection)getURLConnection();
	}

	public void close() throws IOException {
		HttpURLConnection httpURLConnection = (HttpURLConnection)this.urlConnection;
		httpURLConnection.disconnect();
		super.close();
	}
}
